<template>
  <header class="app-header">
    <h1>自动化测试平台</h1>
    <nav>
      <router-link to="/">首页</router-link>
      <router-link to="/cases">用例管理</router-link>
      <router-link to="/reports">测试报告</router-link>
    </nav>
  </header>
</template>

<script setup></script>

<style scoped>
.app-header {
  background-color: #42b983;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

nav a.router-link-exact-active {
  text-decoration: underline;
  font-weight: bold;
}
</style>
